package com.demo.resourcecode.c7;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopDemo {

	public static void main(String[] args) {
		//ApplicationContext context = new ClassPathXmlApplicationContext("aop.xml");
		//Person s = context.getBean(Person.class);
		ApplicationContext context = new ClassPathXmlApplicationContext("aop2.xml");
		Student2 s = context.getBean(Student2.class);
		s.say();
	}

}
